package tuanda.soict.firstsun.BuildingPackage;

import tuanda.soict.firstsun.LogicPackage.Unit;

/**
 * @author tuanda_soict_hut
 * @version 0.0.3
 * @since 25-7-2012
 */
public class Building extends Unit {

	private int buildingID;
	private int obstaclePoint;

	public Building(String nam, int def, int id, int groID, int obsPoint,
			int typ, int x, int y, int dataID) {
		super(nam, groID, DEFAULT_UNIT_RANK, DEFAULT_UNIT_MIN_ATTACK,
				DEFAULT_UNIT_MAX_ATTACK, def, DEFAULT_UNIT_MOVEMENT,
				DEFAULT_UNIT_ATTACK_RANGE, typ, DEFAULT_UNIT_GOLD, x, y, dataID);
		setObstaclePoint(obsPoint);
		setID(id);
	}

	@Override
	public final int getID() {
		return this.buildingID;
	}

	@Override
	public final void setID(int id) {
		this.buildingID = id;
	}

	public final int getObstaclePoint() {
		return this.obstaclePoint;
	}

	public final void setObstaclePoint(int obsPoint) {
		this.obstaclePoint = obsPoint;
	}

	public int getBuildingType() {
		return UNKNOWN_TYPE;
	}
}